package service;

import com.github.pagehelper.PageInfo;
import entity.Chapter;
import exception.ServiceException;
import vo.ChapterVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ChapterService {
    PageInfo<Chapter> loadChapter(ChapterVo chapterVo) throws ServiceException;

    boolean addChapter(Chapter chapter) throws ServiceException;

    boolean modifyChapter(Chapter chapter) throws ServiceException;

    Chapter showToModify(Integer id) throws ServiceException;

    List<Chapter> loadChapterByCourseId(Integer course_id) throws ServiceException;

    List<Chapter> selectChapterByCourseId(int course_id) throws ServiceException;
}
